/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { BaseResponse_ListingInfoVO_ } from '../models/BaseResponse_ListingInfoVO_';
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_Page_ListingInfo_ } from '../models/BaseResponse_Page_ListingInfo_';
import type { BaseResponse_Page_ListingInfoVO_ } from '../models/BaseResponse_Page_ListingInfoVO_';
import type { ListingInfoAddRequest } from '../models/ListingInfoAddRequest';
import type { ListingInfoQueryRequest } from '../models/ListingInfoQueryRequest';
import type { ListingInfoUpdateRequest } from '../models/ListingInfoUpdateRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class ListingInfoControllerService {
    /**
     * AddListing
     * @param listing listing
     * @returns BaseResponse_long_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static addListingUsingPost(
        listing: ListingInfoAddRequest,
    ): CancelablePromise<BaseResponse_long_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/listingInfo/add',
            body: listing,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * deleteById
     * @param listingInfoUpdateRequest listingInfoUpdateRequest
     * @returns BaseResponse_boolean_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static deleteByIdUsingPost(
        listingInfoUpdateRequest: ListingInfoUpdateRequest,
    ): CancelablePromise<BaseResponse_boolean_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/listingInfo/deleteById',
            body: listingInfoUpdateRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * getListingInfoVOById
     * @param id id
     * @returns BaseResponse_ListingInfoVO_ OK
     * @throws ApiError
     */
    public static getListingInfoVoByIdUsingGet(
        id?: number,
    ): CancelablePromise<BaseResponse_ListingInfoVO_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/listingInfo/get/vo',
            query: {
                'id': id,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * listListingInfoByPage
     * @param listingInfoQueryRequest listingInfoQueryRequest
     * @returns BaseResponse_Page_ListingInfo_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listListingInfoByPageUsingPost(
        listingInfoQueryRequest: ListingInfoQueryRequest,
    ): CancelablePromise<BaseResponse_Page_ListingInfo_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/listingInfo/list/page',
            body: listingInfoQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * listListingInfoVOByPage
     * @param listingInfoQueryRequest listingInfoQueryRequest
     * @returns BaseResponse_Page_ListingInfoVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listListingInfoVoByPageUsingPost(
        listingInfoQueryRequest: ListingInfoQueryRequest,
    ): CancelablePromise<BaseResponse_Page_ListingInfoVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/listingInfo/list/page/vo',
            body: listingInfoQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * listMyListingInfoVOByPage
     * @param listingInfoQueryRequest listingInfoQueryRequest
     * @returns BaseResponse_Page_ListingInfoVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listMyListingInfoVoByPageUsingPost(
        listingInfoQueryRequest: ListingInfoQueryRequest,
    ): CancelablePromise<BaseResponse_Page_ListingInfoVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/listingInfo/my/list/page/vo',
            body: listingInfoQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
}
